﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="emailInfo.aspx.cs" Inherits="PHTShop.admin.emailInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $(function () {
            $('.removeBorder td').css('border', 'none');

        })
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="title" class="b2">
        <p>
        </p>
        <h2>
            Email setting</h2>
    </div>
    <fieldset>
        <legend><strong>Email</strong></legend>
        <div>
            <table class="removeBorder" cellpadding="0" cellspacing="0" style="width: 100%; border: none;">
                <tr>
                    <td>
                        <label for="field1c">
                            Email</label>
                    </td>
                    <td>
                        <asp:TextBox name="field1c" ID="TextBox1" runat="server"></asp:TextBox>
                        <asp:HiddenField ID="HiddenField1" runat="server" />
                        <asp:RequiredFieldValidator ControlToValidate="TextBox1" ID="RequiredFieldValidator1"
                            runat="server" ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1"
                            ErrorMessage="Email is not valid format" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                            Display="Dynamic"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="field1c">
                            Password</label>
                    </td>
                    <td>
                        <asp:HiddenField ID="HiddenField2" runat="server" />
                        <asp:TextBox ID="TextBox2" runat="server" TextMode="Password"></asp:TextBox><asp:RequiredFieldValidator
                            ControlToValidate="TextBox2" ID="RequiredFieldValidator2" runat="server" 
                            ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                    SMTPClient
                    </td>
                    <td>
                        <asp:HiddenField ID="HiddenField3" runat="server" />
                        <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ErrorMessage="Required" ControlToValidate="TextBox3" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                    Port
                    </td>
                    <td>
                        <asp:HiddenField ID="HiddenField4" runat="server" />
                        <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                            ErrorMessage="Required" ControlToValidate="TextBox4" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <div style="margin-left: 50px">
                            <asp:Button class="css_btn_class" ID="Button1" runat="server" Text="Save" OnClick="Button1_Click"
                                Width="79px" />
                        </div>
                    </td>
                </tr>
            </table>
       
        </div>
      
    </fieldset>
</asp:Content>
